<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div id="" class="border2">
	<div class="border-top">
		<h3>
			浏览记录
		</h3>
	</div>
	<div class="border-body">
		<div id="box_323" class="GoodsBrowsed" >
			 
			<ul style="padding-top: 10px;">
				<c:forEach items="${historyGoods}" var="gd" varStatus="index"  >
					<li style="padding:2px 0;" class="l1 dotsep">
						<div style="overflow: hidden; text-align: center;" class="pic">
							<a target="_blank" href="dp_goods_get.html?goodsId=${gd.goodsId}"> <img width="${goodsImageParameter.smallPicWidth.data}" src="${gd.thumbnailPic }" /> </a>
						</div>
						<div style="text-align: center;">
							<a target="_blank" href="dp_goods_get.html?goodsId=${gd.goodsId}">${gd.name }</a>
							<br />
							<strong class="mktprice1"><fmt:message key="common_currency" />${gd.mktPrice}</strong>
							<strong style="" class="price1"><fmt:message key="common_currency" />${gd.price}</strong>
						</div>

					</li>
				</c:forEach>
			</ul>
		</div>

		<div class="textright" style="margin: 5px 0;clear: both;">
			<a onclick="clearCoodsHistory()"
href="javascript:void(0);" class="lnk clearAll">清除列表</a>
		</div>
	</div>
	<div class="border-foot"></div>
</div>


<script type="text/javascript">
	function clearCoodsHistory() {
		var name = 'goods_view_history';
		var exp = new Date();
		exp.setTime(exp.getTime() - 10000);
		document.cookie = name + "=;expires=" + exp.toGMTString();
		alert('删除成功');
		document.getElementById('box_323').innerHTML = '';
	}
</script>